package com.liujit.common.domain.result;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description: 字典
 * @Author: liujun
 * @Date: 2021/7/8 4:29 下午
 */
@Data
@ApiModel(value = "DictItem", description = "字典")
@JsonPropertyOrder({ "id", "label", "value", "isDefault" })
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class DictItem extends BaseResult {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "名称")
    private String label;

    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "默认：1、是。0、否。")
    private Short isDefault;
}
